<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::get('hello/:name', 'index/hello');
/*Route::get('dealWord/:id','dealWord/dealWord');
Route::get('dealExcel/:id','dealExcel/dealExcel');*/

//账本相关
Route::post('api/accountBook/getList', 'AccountBookController/getList');
Route::post('api/accountBook/create', 'AccountBookController/create');
Route::post('api/accountBook/update', 'AccountBookController/update');
Route::post('api/accountBook/getOne', 'AccountBookController/getOne');
Route::post('api/accountBook/delete', 'AccountBookController/delete');

//账本记录相关
Route::post('api/accountRecord/getList', 'AccountRecordController/getList');
Route::post('api/accountRecord/create', 'AccountRecordController/create');
Route::post('api/accountRecord/update', 'AccountRecordController/update');
Route::post('api/accountRecord/getOne', 'AccountRecordController/getOne');
Route::post('api/accountRecord/delete', 'AccountRecordController/delete');


//账单分类相关
Route::post('api/accountCategory/getList', 'AccountCategoryController/getList');
Route::post('api/accountCategory/create', 'AccountCategoryController/create');
Route::post('api/accountCategory/update', 'AccountCategoryController/update');
Route::post('api/accountCategory/getOne', 'AccountCategoryController/getOne');
Route::post('api/accountCategory/delete', 'AccountCategoryController/delete');
